<?php
namespace app\index\controller;
use EasyWeChat\Foundation\Application;
/**
 * 前台微信公共控制器
 */
class Base extends \think\Controller
{lizhaowei
	protected $app = '';
	protected $beforeActionList = [];
	protected $options = [
	    'debug'  => true,
	    'app_id' => 'wx13e2c7cb96013793',
	    'secret' => 'ed468e8802814cadff2264821c052a0a',
	    'token'  => 'lizhaowei',
        'log' => [
	        'level' => 'debug',
	        'permission' => 0777,
	        'file'  => '/tmp/easywechat.log', // XXX: 绝对路径！！！！
	    ],
      	'oauth' => [
		    'scopes'   => ['snsapi_base'],
		    'callback' => '/test',
		],
        'guzzle' => [
		    'timeout' => 10.0, // 超时时间（秒）
		],
	];
	public function _initialize(){
		$this->app = new Application($this->options);
		if(method_exists($this, 'init')){
			$this->init();
		}
	}
	
	
	
}
 
 

?>